import React, { } from 'react'
import {
    BrowserRouter as Router,
    Route
} from "react-router-dom";

import './App.scss'

import Start from '../Start/Start'
import Login from '../Login/Login'
import Echarts from '../Echarts/Echarts'
import AnimatedSwitch from '../components/AnimatedSwitch/AnimatedSwitch'


export default () => {
    return (
        <>
            <Router>
                <AnimatedSwitch>
                    <Route exact path="/" component={Start} />
                    <Route exact path="/login" component={Login} />
                    <Route exact path="/echarts" component={Echarts} />
                    <Route render={() => <div>Not Found</div>} />
                </AnimatedSwitch>
            </Router>
        </>
    )
}